// To parse this JSON data, do
//
//     final paymentRecordDto = paymentRecordDtoFromJson(jsonString);

import 'dart:convert';

PaymentRecordDto paymentRecordDtoFromJson(String str) =>
    PaymentRecordDto.fromJson(json.decode(str));

String paymentRecordDtoToJson(PaymentRecordDto data) =>
    json.encode(data.toJson());

class PaymentRecordDto {
  String? email;
  String? firstName;
  String? lastName;
  String? paymentItem;
  int? paymentTerm;
  String? phone;
  String? platform;
  String? schoolName;
  int? studentNumber;
  String? subtotalPrice;
  String? tax;
  String? unitPrice;
  String? zipCode;

  PaymentRecordDto({
    this.email,
    this.firstName,
    this.lastName,
    this.paymentItem,
    this.paymentTerm,
    this.phone,
    this.platform,
    this.schoolName,
    this.studentNumber,
    this.subtotalPrice,
    this.tax,
    this.unitPrice,
    this.zipCode,
  });

  factory PaymentRecordDto.fromJson(Map<String, dynamic> json) =>
      PaymentRecordDto(
        email: json["email"],
        firstName: json["firstName"],
        lastName: json["lastName"],
        paymentItem: json["paymentItem"],
        paymentTerm: json["paymentTerm"],
        phone: json["phone"],
        platform: json["platform"],
        schoolName: json["schoolName"],
        studentNumber: json["studentNumber"],
        subtotalPrice: json["subtotalPrice"],
        tax: json["tax"],
        unitPrice: json["unitPrice"],
        zipCode: json["zipCode"],
      );

  Map<String, dynamic> toJson() => {
        "email": email,
        "firstName": firstName,
        "lastName": lastName,
        "paymentItem": paymentItem,
        "paymentTerm": paymentTerm,
        "phone": phone,
        "platform": platform,
        "schoolName": schoolName,
        "studentNumber": studentNumber,
        "subtotalPrice": subtotalPrice,
        "tax": tax,
        "unitPrice": unitPrice,
        "zipCode": zipCode,
      };
}
